package com.org.javabody.Enum;

/**
 * Created by Administrator on 2017-03-30.
 */
public enum EnumDemo {
    A,B,C,D,E;

    public static void main(String[] args) {
        System.out.println(EnumDemo.valueOf("E"));//valueOf("")没有对应的枚举会报异常
        System.out.println(EnumDemo.values());
        for(EnumDemo de : EnumDemo.values()) {
            System.out.println(de);
        }
        System.exit(-1);
    }


}
